package com.storage.mongo;

import org.bson.types.ObjectId;

import com.google.code.morphia.annotations.Embedded;
import com.google.code.morphia.annotations.Entity;
import com.google.code.morphia.annotations.Id;

@Entity
public class Echarity {
		
	@Id
	private
	ObjectId Id;
	private String charityName;
	private String charityDescription;
	
	@Embedded
	private Edonate donate;
	private String totalAmount;
	private String createdUser;
	private String communityID;
	private String createdDate;
	
	public Echarity()
	{
		donate = new Edonate(0,"","");
	}
	
	public Echarity(Edonate newdonate)
	{
		donate = newdonate;
	}
	
	public ObjectId getId() {
		return Id;
	}
	public void setId(ObjectId id) {
		Id = id;
	}
	public String getCharityName() {
		return charityName;
	}
	public void setCharityName(String charityName) {
		this.charityName = charityName;
	}
	public String getCharityDescription() {
		return charityDescription;
	}
	public void setCharityDescription(String charityDescription) {
		this.charityDescription = charityDescription;
	}
	public Edonate getDonate() {
		return donate;
	}
	public void setDonate(Edonate donate) {
		this.donate = donate;
	}
	public String getTotalAmount() {
		return totalAmount;
	}
	public void setTotalAmount(String totalAmount) {
		this.totalAmount = totalAmount;
	}
	public String getCreatedUser() {
		return createdUser;
	}
	public void setCreatedUser(String createdUser) {
		this.createdUser = createdUser;
	}
	public String getCommunityID() {
		return communityID;
	}
	public void setCommunityID(String communityID) {
		this.communityID = communityID;
	}
	public String getCreatedDate() {
		return createdDate;
	}
	public void setCreatedDate(String createdDate) {
		this.createdDate = createdDate;
	}
	
}
